
<div class="blog_post">
  <div class="blog_postcontent">
    <div class="image_frame small">
      <a href="#"><img src="<?php echo Yii::app()->baseUrl ?>/images/blog/blog-img17.jpg" alt=""> </a>
    </div>
    <div class="post_info_content_small">
      <a class="date"><strong><?php echo date("d", $data['createddate'])?></strong><i><?php echo date("M", $data['createddate'])?></i>
      </a>
      <h3>
        <a href="<?php echo Yii::app()->baseUrl ?>/article/detail/id/<?php echo  md5($data['id']) ?>"><?php echo  $data['title'] ?></a>
      </h3>
      <ul class="post_meta_links_small">
        <li class="post_categoty">
               <?php if($data['type']==1){?>
               
                 <a href="<?php echo Yii::app()->baseUrl?>/article/blog">
                 <?php echo "Bài viết" ?>
               
               <?php } else if($data['type']==2){?>
               
                 <a href="<?php echo Yii::app()->baseUrl?>/article/promotion">
                 <?php echo "Khuyến mãi" ?>
               
               <?php }else {?>
               
              	 <a href="<?php echo Yii::app()->baseUrl?>/article/sample">
             	   <?php echo "Công trình"?>
                 
               <?php }?>
            
            </a>
        </li>       
      </ul>
      <div class="clearfix"></div>
      <p><?php echo $data['description']?> 
      
       <a style="color:red;font-weight: normal;font-style: italic;" 
       href="<?php echo Yii::app()->baseUrl ?>/article/detail/id/<?php echo  md5($data['id']) ?>"
       title="">
       <img alt="" src="<?php echo Yii::app()->baseUrl ?>/images/xemthem.jpg" title="Xem thêm" align="right">
       </a>
    </p>
    </div>
  </div>
</div>




